const { expressjwt } = require('express-jwt')
const verify = require('./constant')
const secretKey = verify.secretKey
const jwtAuth = expressjwt({
  algorithms: ['HS256'],
  secret: secretKey,
}).unless({
  path: ['/login'],
})

module.exports = jwtAuth
